import numpy as np
import matplotlib.pyplot as plt
import scipy.io.wavfile
import os

path = r'E:\上课\12-目标检测\12-语音识别\吕志聪语音数据集'

for voice_name in os.listdir(path):
    voice_path = os.path.join(path,voice_name)
    sample_rate, signal = scipy.io.wavfile.read(voice_path)
    signal = signal[:, 0]

    plt.plot(signal)
    plt.title(voice_name)
    plt.grid()
    plt.show()